// This is an extract from my config.h for dwm
// I have set up some custom key-binds to work with the media keys on my laptop keyboard

// These are the commands:
static const char *cmPlayCmd[] = {"cmus-remote", "-u", NULL};
static const char *cmStopCmd[] = {"cmus-remote", "-s", NULL};
static const char *cmPrevCmd[] = {"cmus-remote", "-r", NULL};
static const char *cmNextCmd[] = {"cmus-remote", "-n", NULL};

// And these are the key-bindings
static Key keys[] = {
    // irrelevant keybinds snipped here.......
	{ 0,              XF86XK_AudioPlay,      spawn,          {.v = cmPlayCmd } },
	{ 0,              XF86XK_AudioStop,      spawn,          {.v = cmStopCmd } },
	{ 0,              XF86XK_AudioPrev,      spawn,          {.v = cmPrevCmd } },
	{ 0,              XF86XK_AudioNext,      spawn,          {.v = cmNextCmd } },
    // more irrelevant keybinds snipped...
};

